<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'listUser.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
	<table width="500" border="1">
		<tr>
			<td>用户编号</td>
			<td>用户名</td>
			<td>密码</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<s:iterator value="listUser" id="user">
			<tr>
				<td><s:property value="#user.id" /></td>
				<td><s:property value="#user.username"/></td>
				<td><s:property value="#user.password"/></td>
				<td><a href="updateUserView.action?updateUserView.id=<s:property value="#user.id"/> ">修改</a></td>
				<td><a href="deleteUser.action?deleteUser.id=<s:property value="#user.id"/> ">删除</a></td> 
				<td><s:property value="#user.username"/></td>
			</tr>
		</s:iterator>
	</table>
	
  </body>
</html>
